package com.yangyang.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Finance {

    private Integer id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date finDate;

    private Integer aimId;

    private String aimName;

    private String context;

    private Double borrow;

    private Double loan;

    private Double money;

    private Integer fromId;

    private Integer toId;

    private Integer fromid;

    private String fromname;

    private Integer toid;

    private String toname;

    @Override
    public String toString() {
        return "Finance{" +
                "id=" + id +
                ", finDate=" + finDate +
                ", aimId=" + aimId +
                ", aimName='" + aimName + '\'' +
                ", context='" + context + '\'' +
                ", borrow=" + borrow +
                ", loan=" + loan +
                ", money=" + money +
                ", fromId=" + fromId +
                ", toId=" + toId +
                ", fromid=" + fromid +
                ", fromname='" + fromname + '\'' +
                ", toid=" + toid +
                ", toname='" + toname + '\'' +
                '}';
    }

    public Integer getFromid() {
        return fromid;
    }

    public void setFromid(Integer fromid) {
        this.fromid = fromid;
    }

    public String getFromname() {
        return fromname;
    }

    public void setFromname(String fromname) {
        this.fromname = fromname;
    }

    public Integer getToid() {
        return toid;
    }

    public void setToid(Integer toid) {
        this.toid = toid;
    }

    public String getToname() {
        return toname;
    }

    public void setToname(String toname) {
        this.toname = toname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getFinDate() {
        return finDate;
    }

    public void setFinDate(Date finDate) {
        this.finDate = finDate;
    }

    public Integer getAimId() {
        return aimId;
    }

    public void setAimId(Integer aimId) {
        this.aimId = aimId;
    }

    public String getAimName() {
        return aimName;
    }

    public void setAimName(String aimName) {
        this.aimName = aimName;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Double getBorrow() {
        return borrow;
    }

    public void setBorrow(Double borrow) {
        this.borrow = borrow;
    }

    public Double getLoan() {
        return loan;
    }

    public void setLoan(Double loan) {
        this.loan = loan;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getFromId() {
        return fromId;
    }

    public void setFromId(Integer fromId) {
        this.fromId = fromId;
    }

    public Integer getToId() {
        return toId;
    }

    public void setToId(Integer toId) {
        this.toId = toId;
    }

    public Finance() {
    }

    public Finance(Integer id, Date finDate, Integer aimId, String aimName, String context, Double borrow, Double loan, Double money, Integer fromId, Integer toId) {
        this.id = id;
        this.finDate = finDate;
        this.aimId = aimId;
        this.aimName = aimName;
        this.context = context;
        this.borrow = borrow;
        this.loan = loan;
        this.money = money;
        this.fromId = fromId;
        this.toId = toId;
    }
}
